using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;

namespace MinCultura.Sipa.DataAccess.EntidadesArtes
{
	/// <summary>
	/// DataTable de la entidad Forma_PagoData.
	/// </summary>
	/// 
	[Serializable()]
	[DesignerCategory("code")]

	public class FormasPagoData : DataTable
	{
		///
		/// Constants for table and fields mapping
		///
		public const string ART_FORMA_PAGO_TABLE = "ART_FORMA_PAGO";
		public const string FPG_ID_FIELD = "FPG_ID";
		public const string FPG_NOMBRE_FIELD = "FPG_NOMBRE";

		protected FormasPagoData(SerializationInfo info, StreamingContext context)
		{
		}

		public FormasPagoData()
		{
			BuildDataTables();
		}

		/// <summary>
		/// Creates the following datatables: ART_FORMA_PAGO
		/// </summary>
		private void BuildDataTables()
		{
			DataColumnCollection columns;
			this.TableName = ART_FORMA_PAGO_TABLE;
			columns = this.Columns;

			columns.Add(FPG_ID_FIELD, typeof (Byte));

			columns.Add(FPG_NOMBRE_FIELD, typeof (String));
			columns[FPG_NOMBRE_FIELD].Caption = "Nombre";
		}

		/// <summary>
		/// Add a new row to the table
		/// </summary>
		/// <param name="row">Dataset row.</param>
		public void addFormaPago(DataRow row)
		{
			this.Rows.Add(row);
		}

	}
}